/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.risk.service.api;


import com.koron.common.bean.DepartmentTreeBean;
import com.koron.common.bean.StaffBean;
import com.koron.risk.domain.GridNode;
import org.koron.ebs.mybatis.SessionFactory;
import org.swan.bean.MessageBean;

import java.util.List;
import java.util.Map;

public interface GridNodeService {
	MessageBean<?> save(StaffBean user,GridNode bean);

	MessageBean<?> update(StaffBean user,GridNode bean);

	MessageBean<?> delete(String id);

	MessageBean<?> details(String id);

	MessageBean<?> childList(String id,Integer recursive);
	MessageBean<?> childList2(String corpCode,String id,Integer recursive);

	MessageBean<?> list(String corpCode);

	MessageBean<?> batchSave(StaffBean user,String corpCode,String nodeId,List<GridNode> beanList);

	MessageBean<?> setStaff(String deptCode, String safetyStaffCode, String safetyStaffName, String businessStaffCode, String businessStaffName, String safetyLeader, String safetyLeaderName, String safetyOfficer, String safetyOfficerName);

	Map<String,String> gridStaff(String code);

	MessageBean<?> getGridStaff(String code);

	MessageBean<?> appGetGridByName(String corpCode,String name);

	MessageBean<Map> getAllNodes(String corpCode);

	List<String> getChildCodeList(String code);

	DepartmentTreeBean getCorpInfo(SessionFactory factory, String gridCode);
}
